﻿using System.Web.UI;
using System.ComponentModel;
using System.Drawing.Design;
using System.Web.UI.Design;

namespace GeoWeb.Controls.WebGrid
{
    public class WebGridImageColumn : WebGridColumn
    {
        public override ColumnTypes Type
        {
            get { return ColumnTypes.Image; }
        }

        private string imageUrl = "";
        /// <summary>
        /// 图片列的图片的URL
        /// </summary>
        [Editor(typeof(UrlEditor), typeof(UITypeEditor)), UrlProperty]
        public string ImageUrl
        {
            get { return imageUrl; }
            set { imageUrl = value; }
        }
    }
}
